<template>
  <div class="root">
    <navbar class="navbar" :navbor-name="name"></navbar>
    <layout class="layout"   ></layout>
  </div>

</template>
<script setup>
import Navbar from "./Navbar.vue";
import Layout from "./Layout.vue";
import {ref} from "vue";
const name = ref("zhangsna");
</script>
<style>
  *{
    margin: 0;
    padding: 0;
  }
  .root{
    display: flex;
    flex-direction: column;
    height: 100vh;
  }

  .navbar{
    height: 50px ;
  }
  .layout{
    flex: 1;
    display: flex;
  }
</style>